Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed analysis of existing static methods if the __callStatic() method exists #10812

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

issidorov
Copy link
Contributor

@issidorov issidorov commented Mar 11, 2024

Fixes #10807

@issidorov issidorov changed the title Fix Bug #10807 Fix Bug 10807 Mar 11, 2024
@issidorov issidorov changed the title Fix Bug 10807 Fix Bug #10807 Mar 11, 2024
SCIF and others added 2 commits March 11, 2024 20:09
Resolved problem:
```
Psalm\Tests\AssertAnnotationTest::testAssertsAllongCallStaticMethodWork
Psalm\Exception\CodeException: LessSpecificReturnStatement
The type 'string' is more general than the declared return type 'non-empty-string' for returnNonEmpty
```
@weirdan weirdan changed the base branch from 5.x to 5.23.x March 11, 2024 19:10
@weirdan weirdan changed the title Fix Bug #10807 Don't fall back to __callStatic() for existing static methods Mar 11, 2024
@weirdan weirdan added the release:fix The PR will be included in 'Fixes' section of the release notes label Mar 11, 2024
@weirdan
Copy link
Collaborator

weirdan commented Mar 11, 2024

@issidorov does the current title correctly summarize the changes proposed?

@issidorov
Copy link
Contributor Author

issidorov commented Mar 11, 2024

@weirdan
I think a better topic title would be:
Fixed analysis of existing static methods if the __callStatic() method exists

@weirdan weirdan changed the title Don't fall back to __callStatic() for existing static methods Fixed analysis of existing static methods if the __callStatic() method exists Mar 11, 2024
@weirdan weirdan merged commit 8471a89 into vimeo:5.23.x Mar 11, 2024
50 of 51 checks passed
Gashmob added a commit to Gashmob/project-templates that referenced this pull request Mar 18, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [vimeo/psalm](https://togithub.com/vimeo/psalm) | `5.22.1` -> `5.23.1`
|
[![age](https://developer.mend.io/api/mc/badges/age/packagist/vimeo%2fpsalm/5.23.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/packagist/vimeo%2fpsalm/5.23.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/packagist/vimeo%2fpsalm/5.22.1/5.23.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/packagist/vimeo%2fpsalm/5.22.1/5.23.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>vimeo/psalm (vimeo/psalm)</summary>

### [`v5.23.1`](https://togithub.com/vimeo/psalm/releases/tag/5.23.1)

[Compare
Source](https://togithub.com/vimeo/psalm/compare/5.23.0...5.23.1)

<!-- Release notes generated using configuration in .github/release.yml
at 5.23.x -->

#### What's Changed

##### Fixes

- Fixed analysis of existing static methods if the `__callStatic()`
method exists by [@&#8203;issidorov](https://togithub.com/issidorov) in
[vimeo/psalm#10812

**Full Changelog**:
vimeo/psalm@5.23.0...5.23.1

### [`v5.23.0`](https://togithub.com/vimeo/psalm/releases/tag/5.23.0)

[Compare
Source](https://togithub.com/vimeo/psalm/compare/5.22.2...5.23.0)

<!-- Release notes generated using configuration in .github/release.yml
at 5.x -->

#### What's Changed

##### Features

- Update PHP 8.2 stubs to include `SensitiveParameterValue` by
[@&#8203;gsteel](https://togithub.com/gsteel) in
[vimeo/psalm#10726
- Add list of statements to BeforeFileAnalysisEvent by
[@&#8203;ohader](https://togithub.com/ohader) in
[vimeo/psalm#10728
- Forbid iterating over generators with non-nullable `send()` by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10697
- Initial support for named parameters for callables by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10772

##### Fixes

- Improve randomizer stubs by
[@&#8203;danog](https://togithub.com/danog) in
[vimeo/psalm#10709
- Fix detecting magic static methods by
[@&#8203;issidorov](https://togithub.com/issidorov) in
[vimeo/psalm#10704
- Fix non-empty-lowercase-string handling with literal non-lowercase
strings by [@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10722
- Fix RiskyTruthyFalsyComparison irrelevant errors when there is no
explicit truthy/falsy type by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10733
- Allow `Override` attribute to be used in pure contexts by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10734
- Revert "Allow tainted numerics except for 'html' and 'has_quotes'" by
[@&#8203;ohader](https://togithub.com/ohader) in
[vimeo/psalm#10729
- Fix loading stubs from phar file on Windows by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10748
- Fix a false flag issue with InvalidConstantAssignmentValue by
[@&#8203;MelechMizrachi](https://togithub.com/MelechMizrachi) in
[vimeo/psalm#10738
- Set inside_isset false when analyzing ArrayDimFetch index by
[@&#8203;edsrzf](https://togithub.com/edsrzf) in
[vimeo/psalm#10752
- Set inside_isset = false when analyzing arguments by
[@&#8203;edsrzf](https://togithub.com/edsrzf) in
[vimeo/psalm#10753
- Fix PHP notice - crash on invalid taint-escape by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10760
- Fix version comparison for `@since` by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10764
- Since annotations outside phpstub should not infer php version by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10769
- Backport `WeakMap` iterator fix from `master` by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10778
- Namespace anonymous classes by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10779
- Update CallMap for sqlsrv_connect and sqlsrv_errors to match
reflection by [@&#8203;theodorejb](https://togithub.com/theodorejb) in
[vimeo/psalm#10781
- `$resource` parameter of `mkdir()` is nullable since PHP 7.3 by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10802
- Use wider class-string when combining class strings with intersections
by [@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10800

##### Internal changes

- Use TaintKind/TaintKindGroup constants instead of string values by
[@&#8203;ohader](https://togithub.com/ohader) in
[vimeo/psalm#10746
- Skip symlink test on Windows by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10749
- Avoid duplicating code for RiskyTruthyFalsyComparison by
[@&#8203;theodorejb](https://togithub.com/theodorejb) in
[vimeo/psalm#10765
- fix PHP 8 tests running with wrong --php-version=/phpVersion= if not
explicitly specified by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10776
- CS fix by [@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10801

#### New Contributors

- [@&#8203;MelechMizrachi](https://togithub.com/MelechMizrachi) made
their first contribution in
[vimeo/psalm#10738

**Full Changelog**:
vimeo/psalm@5.22.2...5.23.0

### [`v5.22.2`](https://togithub.com/vimeo/psalm/releases/tag/5.22.2)

[Compare
Source](https://togithub.com/vimeo/psalm/compare/5.22.1...5.22.2)

<!-- Release notes generated using configuration in .github/release.yml
at 5.22.x -->

#### What's Changed

##### Fixes

- Catch missing classlike exceptions during scanning by
[@&#8203;weirdan](https://togithub.com/weirdan) and
[@&#8203;ohader](https://togithub.com/ohader) in
[vimeo/psalm#10720

**Full Changelog**:
vimeo/psalm@5.22.1...5.22.2

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/Gashmob/project-templates).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMDAuMCIsInVwZGF0ZWRJblZlciI6IjM3LjIzMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->
oguzhand95 pushed a commit to cerbos/cerbos-sdk-php that referenced this pull request Apr 1, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[php-parallel-lint/php-parallel-lint](https://togithub.com/php-parallel-lint/PHP-Parallel-Lint)
| `1.3.2` -> `1.4.0` |
[![age](https://developer.mend.io/api/mc/badges/age/packagist/php-parallel-lint%2fphp-parallel-lint/1.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/packagist/php-parallel-lint%2fphp-parallel-lint/1.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/packagist/php-parallel-lint%2fphp-parallel-lint/1.3.2/1.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/packagist/php-parallel-lint%2fphp-parallel-lint/1.3.2/1.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [phpstan/phpstan](https://togithub.com/phpstan/phpstan) | `1.10.60` ->
`1.10.66` |
[![age](https://developer.mend.io/api/mc/badges/age/packagist/phpstan%2fphpstan/1.10.66?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/packagist/phpstan%2fphpstan/1.10.66?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/packagist/phpstan%2fphpstan/1.10.60/1.10.66?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/packagist/phpstan%2fphpstan/1.10.60/1.10.66?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [phpunit/phpunit](https://phpunit.de/)
([source](https://togithub.com/sebastianbergmann/phpunit)) | `10.5.12`
-> `10.5.16` |
[![age](https://developer.mend.io/api/mc/badges/age/packagist/phpunit%2fphpunit/10.5.16?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/packagist/phpunit%2fphpunit/10.5.16?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/packagist/phpunit%2fphpunit/10.5.12/10.5.16?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/packagist/phpunit%2fphpunit/10.5.12/10.5.16?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [vimeo/psalm](https://togithub.com/vimeo/psalm) | `5.23.0` -> `5.23.1`
|
[![age](https://developer.mend.io/api/mc/badges/age/packagist/vimeo%2fpsalm/5.23.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/packagist/vimeo%2fpsalm/5.23.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/packagist/vimeo%2fpsalm/5.23.0/5.23.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/packagist/vimeo%2fpsalm/5.23.0/5.23.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>php-parallel-lint/PHP-Parallel-Lint
(php-parallel-lint/php-parallel-lint)</summary>

###
[`v1.4.0`](https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/releases/tag/v1.4.0)

[Compare
Source](https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/compare/v1.3.2...v1.4.0)

New version with support up to PHP 8.3 and preliminary support for PHP
8.4.

##### Added

- The "skip linting" feature can now be used in PHP files starting with
a shebang, [#&#8203;146] from
[@&#8203;xaben](https://togithub.com/xaben).

##### Fixed

- PHP 8.4 deprecation notice, [#&#8203;154] from
[@&#8203;Ayesh](https://togithub.com/Ayesh) and
[@&#8203;jrfnl](https://togithub.com/jrfnl).
- Bug fix: the PHP version check in the application bootstrap did not
work on PHP < 5.3, [#&#8203;100] from
[@&#8203;jrfnl](https://togithub.com/jrfnl), fixes [#&#8203;62].
- Bug fix: files containing the `~` character in their name can now be
processed correctly, [#&#8203;118] from
[@&#8203;jrfnl](https://togithub.com/jrfnl).
- Bug fix: error message sometimes displayed on last line of code
snippet, [#&#8203;98] from [@&#8203;jrfnl](https://togithub.com/jrfnl),
fixes [#&#8203;93].
- Bug fix: error message would sometimes contain duplicate information,
[#&#8203;117] from [@&#8203;jrfnl](https://togithub.com/jrfnl).
- Bug fix: the "in file .. on line part" text did not always get cleaned
correctly from the error message, [#&#8203;118] from
[@&#8203;jrfnl](https://togithub.com/jrfnl).

##### Changed

- The percentage output in the progress report is now aligned,
[#&#8203;140] from
[@&#8203;robertology](https://togithub.com/robertology).
- The error message displayed when the PHP version is too low for the
application to run is now more informative, [#&#8203;100] from
[@&#8203;jrfnl](https://togithub.com/jrfnl).
- Composer: The package will now identify itself as a static
analysis/linting tool, [#&#8203;134] from
[@&#8203;staabm](https://togithub.com/staabm).
- Composer: fix grammar error, [#&#8203;139] from
[@&#8203;TravisCarden](https://togithub.com/TravisCarden).
- README: improvement to the install instructions, [#&#8203;99] from
[@&#8203;samsonasik](https://togithub.com/samsonasik), fixes
[#&#8203;96].
- README: move screenshot, [#&#8203;97] from
[@&#8203;jrfnl](https://togithub.com/jrfnl).
- README: fix typos, [#&#8203;124] from
[@&#8203;krsriq](https://togithub.com/krsriq).
- Docs: code style consistency, [#&#8203;137] from
[@&#8203;lens0021](https://togithub.com/lens0021).

##### Internal

- Prevent PHAR not being compatible with PHP < 7.0, [#&#8203;116] from
[@&#8203;jrfnl](https://togithub.com/jrfnl).
- GH Actions: update used actions, [#&#8203;109], [#&#8203;158] from
[@&#8203;jrfnl](https://togithub.com/jrfnl).
- GH Actions: updates for box 4.x, [#&#8203;121] from
[@&#8203;jrfnl](https://togithub.com/jrfnl).
- GH Actions: fix download URL for box, [#&#8203;125] from
[@&#8203;jrfnl](https://togithub.com/jrfnl).
- GH Actions: use fail-fast with setup-php when creating the binaries,
[#&#8203;131], [#&#8203;132] from
[@&#8203;jrfnl](https://togithub.com/jrfnl).
- GH Actions: update PHP version for PHAR boxing, [#&#8203;152] from
[@&#8203;jrfnl](https://togithub.com/jrfnl).
- GH Actions: harden the workflow against PHPCS ruleset errors,
[#&#8203;128] from [@&#8203;jrfnl](https://togithub.com/jrfnl).
- GH Actions: bust the cache semi-regularly, [#&#8203;129] from
[@&#8203;jrfnl](https://togithub.com/jrfnl).
- GH Actions: update PHP versions in workflows, [#&#8203;130] from
[@&#8203;jrfnl](https://togithub.com/jrfnl).
- GH Actions: update for the release of PHP 8.3, [#&#8203;150],
[#&#8203;151] from [@&#8203;jrfnl](https://togithub.com/jrfnl).
- GH Actions: fix duplicate release, [#&#8203;159] from
[@&#8203;jrfnl](https://togithub.com/jrfnl).
- SettingsParseArgumentsTest: fix bug in test, [#&#8203;102] from
[@&#8203;jrfnl](https://togithub.com/jrfnl).
- OutputTest: fix risky test, [#&#8203;156] from
[@&#8203;jrfnl](https://togithub.com/jrfnl).
- Tests: fix issue with Nette Tester 1.x, [#&#8203;141] from
[@&#8203;grogy](https://togithub.com/grogy).
- Add dependabot configuration file, [#&#8203;148] from
[@&#8203;jrfnl](https://togithub.com/jrfnl).

[1.4.0]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/compare/v1.3.2...v1.4.0

[#&#8203;62]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/issues/62

[#&#8203;93]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/issues/93

[#&#8203;96]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/issues/96

[#&#8203;97]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/97

[#&#8203;98]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/98

[#&#8203;99]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/99

[#&#8203;100]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/100

[#&#8203;102]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/102

[#&#8203;109]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/109

[#&#8203;116]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/116

[#&#8203;117]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/117

[#&#8203;118]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/118

[#&#8203;121]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/121

[#&#8203;124]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/124

[#&#8203;125]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/125

[#&#8203;128]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/128

[#&#8203;129]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/129

[#&#8203;130]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/130

[#&#8203;131]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/131

[#&#8203;132]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/132

[#&#8203;134]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/134

[#&#8203;137]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/137

[#&#8203;139]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/139

[#&#8203;140]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/140

[#&#8203;141]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/141

[#&#8203;146]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/146

[#&#8203;148]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/148

[#&#8203;150]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/150

[#&#8203;151]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/151

[#&#8203;152]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/152

[#&#8203;154]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/154

[#&#8203;156]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/156

[#&#8203;158]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/158

[#&#8203;159]:
https://togithub.com/php-parallel-lint/PHP-Parallel-Lint/pull/159

</details>

<details>
<summary>phpstan/phpstan (phpstan/phpstan)</summary>

###
[`v1.10.66`](https://togithub.com/phpstan/phpstan/compare/1.10.65...1.10.66)

[Compare
Source](https://togithub.com/phpstan/phpstan/compare/1.10.65...1.10.66)

###
[`v1.10.65`](https://togithub.com/phpstan/phpstan/releases/tag/1.10.65)

[Compare
Source](https://togithub.com/phpstan/phpstan/compare/1.10.64...1.10.65)

# Improvements 🔧

- Fix slow enum cases union with lots of cases
([#&#8203;2985](https://togithub.com/phpstan/phpstan-src/pull/2985)),
[#&#8203;10772](https://togithub.com/phpstan/phpstan/issues/10772),
thanks [@&#8203;staabm](https://togithub.com/staabm)!

# Bugfixes 🐛

- Update BetterReflection
([#&#8203;2988](https://togithub.com/phpstan/phpstan-src/pull/2988))
- Fix ReflectionSourceStubber compatibility before PHP 8.1
(ondrejmirtes/BetterReflection@94ca133),
[larastan/larastan#1882
- Fix trait method visibility
(ondrejmirtes/BetterReflection@d6153d5?w=1)

# Function signature fixes 🤖

- Add benevolent union return types
([#&#8203;2986](https://togithub.com/phpstan/phpstan-src/pull/2986)),
thanks [@&#8203;zonuexe](https://togithub.com/zonuexe)!

# Internals 🔍

- Add more tests for issue
[#&#8203;10622](https://togithub.com/phpstan/phpstan/issues/10622)
([#&#8203;2961](https://togithub.com/phpstan/phpstan-src/pull/2961)),
thanks [@&#8203;mvorisek](https://togithub.com/mvorisek)!
- Remove unnecessary method calls in ClassReflection
([#&#8203;2984](https://togithub.com/phpstan/phpstan-src/pull/2984)),
thanks [@&#8203;staabm](https://togithub.com/staabm)!
- Use `TrinaryLogic::describe()` in test
(phpstan/phpstan-src@222a66c)

###
[`v1.10.64`](https://togithub.com/phpstan/phpstan/releases/tag/1.10.64)

[Compare
Source](https://togithub.com/phpstan/phpstan/compare/1.10.63...1.10.64)

# Bleeding edge 🔪

- Fail build when project config uses custom extensions outside of
analysed paths
- This will only occur after a run that uses already present and valid
result cache

*If you want to see the shape of things to come and adopt bleeding edge
features early, you can include this config file in your project's
`phpstan.neon`:*

    includes:
    	- vendor/phpstan/phpstan/conf/bleedingEdge.neon

*Of course, there are no backwards compatibility guarantees when you
include this file. The behaviour and reported errors can change in minor
versions with this file included. [Learn
more](https://phpstan.org/blog/what-is-bleeding-edge)*

# Improvements 🔧

- Introduce `ForbiddenClassNameExtension` for append additional
forbidden class prefixes
([#&#8203;2979](https://togithub.com/phpstan/phpstan-src/pull/2979)),
thanks [@&#8203;kamil-zacek](https://togithub.com/kamil-zacek)!
- Add `AlwaysUsedMethodExtension`
([#&#8203;2927](https://togithub.com/phpstan/phpstan-src/pull/2927)),
thanks [@&#8203;axlon](https://togithub.com/axlon)!
- Warn about possibly stale result cache with custom extensions
(phpstan/phpstan-src@9338fdf)
- This is how it looks:
https://twitter.com/OndrejMirtes/status/1770024563113390437

# Bugfixes 🐛

- Fix deprecated parameter order
([#&#8203;2971](https://togithub.com/phpstan/phpstan-src/pull/2971)),
thanks [@&#8203;sayuprc](https://togithub.com/sayuprc)!

# Function signature fixes 🤖

- Fix `DOMDocument::load` return type
([#&#8203;2975](https://togithub.com/phpstan/phpstan-src/pull/2975)),
thanks [@&#8203;VincentLanglet](https://togithub.com/VincentLanglet)!
- Fix `SplObjectStorage::removeAll/Except`
([#&#8203;2892](https://togithub.com/phpstan/phpstan-src/pull/2892)),
thanks [@&#8203;schlndh](https://togithub.com/schlndh)!

###
[`v1.10.63`](https://togithub.com/phpstan/phpstan/compare/1.10.62...1.10.63)

[Compare
Source](https://togithub.com/phpstan/phpstan/compare/1.10.62...1.10.63)

###
[`v1.10.62`](https://togithub.com/phpstan/phpstan/releases/tag/1.10.62)

[Compare
Source](https://togithub.com/phpstan/phpstan/compare/1.10.61...1.10.62)

# Improvements 🔧

- Too wide return type - report for conditional return types
(phpstan/phpstan-src@de1c07e)

# Bugfixes 🐛

- Constants deprecation depends on PHP version in comment
([#&#8203;2967](https://togithub.com/phpstan/phpstan-src/pull/2967)),
[#&#8203;10700](https://togithub.com/phpstan/phpstan/issues/10700),
thanks [@&#8203;staabm](https://togithub.com/staabm)!
- Make `@param-out` work even if it is the only conditional type in a
function signature
(phpstan/phpstan-src@787c1e2)
- ParameterOutAssignedTypeRule - fix for conditional types
(phpstan/phpstan-src@19497ba)
- ParameterOutExecutionEndTypeRule - fix for conditional types
(phpstan/phpstan-src@27c73f7)
- Too wide `@param-out` - fix for conditional types
(phpstan/phpstan-src@5a47893)

###
[`v1.10.61`](https://togithub.com/phpstan/phpstan/releases/tag/1.10.61)

[Compare
Source](https://togithub.com/phpstan/phpstan/compare/1.10.60...1.10.61)

# Improvements 🔧

-   Update BetterReflection to 6.25.0
- Implement PHP Version dependent deprecations for constants
([Roave/BetterReflection#1396),
thanks [@&#8203;staabm](https://togithub.com/staabm)!
- Support for `final` modifier in traits
([Roave/BetterReflection#1383),
thanks [@&#8203;kukulich](https://togithub.com/kukulich)!
- Support for conditional types in `@param-out`
(phpstan/phpstan-src@effad95),
[#&#8203;10699](https://togithub.com/phpstan/phpstan/issues/10699)
- Check conditional types in `@param-out`
(phpstan/phpstan-src@67f9420)

# Bugfixes 🐛

- Too wide `@param-out` type - consider all execution ends at once
(phpstan/phpstan-src@d1bcf78),
[#&#8203;10687](https://togithub.com/phpstan/phpstan/issues/10687),
[#&#8203;10684](https://togithub.com/phpstan/phpstan/issues/10684)

# Internals 🔍

- MethodReturnStatementsNode - use ExtendedMethodReflection
(phpstan/phpstan-src@3cc1a54)

</details>

<details>
<summary>sebastianbergmann/phpunit (phpunit/phpunit)</summary>

###
[`v10.5.16`](https://togithub.com/sebastianbergmann/phpunit/compare/10.5.15...10.5.16)

[Compare
Source](https://togithub.com/sebastianbergmann/phpunit/compare/10.5.15...10.5.16)

###
[`v10.5.15`](https://togithub.com/sebastianbergmann/phpunit/compare/10.5.14...10.5.15)

[Compare
Source](https://togithub.com/sebastianbergmann/phpunit/compare/10.5.14...10.5.15)

###
[`v10.5.14`](https://togithub.com/sebastianbergmann/phpunit/releases/tag/10.5.14):
PHPUnit 10.5.14

[Compare
Source](https://togithub.com/sebastianbergmann/phpunit/compare/10.5.13...10.5.14)

##### Changed

-
[#&#8203;5747](https://togithub.com/sebastianbergmann/phpunit/pull/5747):
Cache result of `Groups::groups()`
-
[#&#8203;5748](https://togithub.com/sebastianbergmann/phpunit/pull/5748):
Improve performance of `NamePrettifier::prettifyTestMethodName()`
-
[#&#8203;5750](https://togithub.com/sebastianbergmann/phpunit/pull/5750):
Micro-optimize `NamePrettifier::prettifyTestMethodName()` once again

##### Fixed

-
[#&#8203;5760](https://togithub.com/sebastianbergmann/phpunit/issues/5760):
TestDox printer does not display details about exceptions raised in
before-test methods

***

[How to install or update
PHPUnit](https://docs.phpunit.de/en/10.5/installation.html)

###
[`v10.5.13`](https://togithub.com/sebastianbergmann/phpunit/compare/10.5.12...10.5.13)

[Compare
Source](https://togithub.com/sebastianbergmann/phpunit/compare/10.5.12...10.5.13)

</details>

<details>
<summary>vimeo/psalm (vimeo/psalm)</summary>

### [`v5.23.1`](https://togithub.com/vimeo/psalm/releases/tag/5.23.1)

[Compare
Source](https://togithub.com/vimeo/psalm/compare/5.23.0...5.23.1)

<!-- Release notes generated using configuration in .github/release.yml
at 5.23.x -->

#### What's Changed

##### Fixes

- Fixed analysis of existing static methods if the `__callStatic()`
method exists by [@&#8203;issidorov](https://togithub.com/issidorov) in
[vimeo/psalm#10812

**Full Changelog**:
vimeo/psalm@5.23.0...5.23.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/cerbos/cerbos-sdk-php).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNDUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Oğuzhan Durgun <oguzhandurgun95@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
tcarrio pushed a commit to open-feature/php-sdk that referenced this pull request May 7, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [vimeo/psalm](https://togithub.com/vimeo/psalm) | `~5.17.0` ->
`~5.24.0` |
[![age](https://developer.mend.io/api/mc/badges/age/packagist/vimeo%2fpsalm/5.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/packagist/vimeo%2fpsalm/5.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/packagist/vimeo%2fpsalm/5.17.0/5.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/packagist/vimeo%2fpsalm/5.17.0/5.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>vimeo/psalm (vimeo/psalm)</summary>

### [`v5.24.0`](https://togithub.com/vimeo/psalm/releases/tag/5.24.0)

[Compare
Source](https://togithub.com/vimeo/psalm/compare/5.23.1...5.24.0)

<!-- Release notes generated using configuration in .github/release.yml
at 5.x -->

#### What's Changed

##### Features

- Allow specifying flags to Codebase::isTypeContainedByType by
[@&#8203;danog](https://togithub.com/danog) in
[vimeo/psalm#10829
- Allow more callable types as subtypes of `callable` by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10805
- Report `parent` being used in callable context when the class does not
extend anything by [@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10838
- Report error for additional deprecated arg types in PHP 8.1/8.3 by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10824
- Add MissingClassConstType Issue by
[@&#8203;jack-worman](https://togithub.com/jack-worman) in
[vimeo/psalm#10828
- Enforce parameter names for consistent constructors by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10821
- Add misc missing errors for invalid callable methods by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10839

##### Fixes

- Forbid named arguments for ArrayAcccess methods by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10804
- Don't crash on invalid templates by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10806
- report error for single param name mismatch too since named args can
even be used then by [@&#8203;kkmuffme](https://togithub.com/kkmuffme)
in
[vimeo/psalm#10822
- add support for named arguments for filter_var and filter_input by
[@&#8203;pilif](https://togithub.com/pilif) in
[vimeo/psalm#10815
- When inside isset, make array fetch result nullable by
[@&#8203;edsrzf](https://togithub.com/edsrzf) in
[vimeo/psalm#10756
- Promoted properties missing in extended \__construct should report
PropertyNotSetInConstructor by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10817
- Updating signature of `getmxrr()` by
[@&#8203;ThomasLandauer](https://togithub.com/ThomasLandauer) in
[vimeo/psalm#10847
- Improve string-int juggle consistency in array keys and display for
int-like strings in type by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10814
- Fix storage not available in thread for intersection doc types by
[@&#8203;simonberger](https://togithub.com/simonberger) in
[vimeo/psalm#10856
- Don't emit MissingOverrideAttribute for implicit Stringable
implementations by [@&#8203;edsrzf](https://togithub.com/edsrzf) in
[vimeo/psalm#10858
- Specify array return type of session_get_cookie_params by
[@&#8203;jorgsowa](https://togithub.com/jorgsowa) in
[vimeo/psalm#10859
- Unknown [@&#8203;psalm](https://togithub.com/psalm) annotation should
not make whole docblock invalid by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10885
- Add `mail` to impure functions list by
[@&#8203;smaddock](https://togithub.com/smaddock) in
[vimeo/psalm#10923
- Update PHP 8.2 Call map delta with refined types for string comparison
functions by [@&#8203;gsteel](https://togithub.com/gsteel) in
[vimeo/psalm#10883

##### Docs

- document that
[@&#8203;psalm-internal](https://togithub.com/psalm-internal) works for
namespace + class too by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10866

##### Internal changes

- fix tests running with other than called PHP binary if called with a
non-default PHP binary by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10842
- Explicitly set value in config to fix warning in tests by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10843
- \[PHP 8.4] Fixes for implicit nullability deprecation by
[@&#8203;Ayesh](https://togithub.com/Ayesh) in
[vimeo/psalm#10832
- Throw exception instead of silently logging issues occurred during
scan by [@&#8203;danog](https://togithub.com/danog) in
[vimeo/psalm#10902

##### Other changes

- Fix conditional on non empty literal string by
[@&#8203;VincentLanglet](https://togithub.com/VincentLanglet) in
[vimeo/psalm#10912
- Ignore jsonSerialize for implementors of JsonSerializable by
[@&#8203;josephwynn-sc](https://togithub.com/josephwynn-sc) in
[vimeo/psalm#10891
- Add XML functions to ImpureFunctionsList
[#&#8203;10882](https://togithub.com/vimeo/psalm/issues/10882) by
[@&#8203;DKhalil](https://togithub.com/DKhalil) in
[vimeo/psalm#10887

#### New Contributors

- [@&#8203;Ayesh](https://togithub.com/Ayesh) made their first
contribution in
[vimeo/psalm#10832
- [@&#8203;smaddock](https://togithub.com/smaddock) made their first
contribution in
[vimeo/psalm#10923
- [@&#8203;josephwynn-sc](https://togithub.com/josephwynn-sc) made their
first contribution in
[vimeo/psalm#10891
- [@&#8203;DKhalil](https://togithub.com/DKhalil) made their first
contribution in
[vimeo/psalm#10887

**Full Changelog**:
vimeo/psalm@5.23.1...5.24.0

### [`v5.23.1`](https://togithub.com/vimeo/psalm/releases/tag/5.23.1)

[Compare
Source](https://togithub.com/vimeo/psalm/compare/5.23.0...5.23.1)

<!-- Release notes generated using configuration in .github/release.yml
at 5.23.x -->

#### What's Changed

##### Fixes

- Fixed analysis of existing static methods if the `__callStatic()`
method exists by [@&#8203;issidorov](https://togithub.com/issidorov) in
[vimeo/psalm#10812

**Full Changelog**:
vimeo/psalm@5.23.0...5.23.1

### [`v5.23.0`](https://togithub.com/vimeo/psalm/releases/tag/5.23.0)

[Compare
Source](https://togithub.com/vimeo/psalm/compare/5.22.2...5.23.0)

<!-- Release notes generated using configuration in .github/release.yml
at 5.x -->

#### What's Changed

##### Features

- Update PHP 8.2 stubs to include `SensitiveParameterValue` by
[@&#8203;gsteel](https://togithub.com/gsteel) in
[vimeo/psalm#10726
- Add list of statements to BeforeFileAnalysisEvent by
[@&#8203;ohader](https://togithub.com/ohader) in
[vimeo/psalm#10728
- Forbid iterating over generators with non-nullable `send()` by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10697
- Initial support for named parameters for callables by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10772

##### Fixes

- Improve randomizer stubs by
[@&#8203;danog](https://togithub.com/danog) in
[vimeo/psalm#10709
- Fix detecting magic static methods by
[@&#8203;issidorov](https://togithub.com/issidorov) in
[vimeo/psalm#10704
- Fix non-empty-lowercase-string handling with literal non-lowercase
strings by [@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10722
- Fix RiskyTruthyFalsyComparison irrelevant errors when there is no
explicit truthy/falsy type by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10733
- Allow `Override` attribute to be used in pure contexts by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10734
- Revert "Allow tainted numerics except for 'html' and 'has_quotes'" by
[@&#8203;ohader](https://togithub.com/ohader) in
[vimeo/psalm#10729
- Fix loading stubs from phar file on Windows by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10748
- Fix a false flag issue with InvalidConstantAssignmentValue by
[@&#8203;MelechMizrachi](https://togithub.com/MelechMizrachi) in
[vimeo/psalm#10738
- Set inside_isset false when analyzing ArrayDimFetch index by
[@&#8203;edsrzf](https://togithub.com/edsrzf) in
[vimeo/psalm#10752
- Set inside_isset = false when analyzing arguments by
[@&#8203;edsrzf](https://togithub.com/edsrzf) in
[vimeo/psalm#10753
- Fix PHP notice - crash on invalid taint-escape by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10760
- Fix version comparison for `@since` by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10764
- Since annotations outside phpstub should not infer php version by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10769
- Backport `WeakMap` iterator fix from `master` by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10778
- Namespace anonymous classes by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10779
- Update CallMap for sqlsrv_connect and sqlsrv_errors to match
reflection by [@&#8203;theodorejb](https://togithub.com/theodorejb) in
[vimeo/psalm#10781
- `$resource` parameter of `mkdir()` is nullable since PHP 7.3 by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10802
- Use wider class-string when combining class strings with intersections
by [@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10800

##### Internal changes

- Use TaintKind/TaintKindGroup constants instead of string values by
[@&#8203;ohader](https://togithub.com/ohader) in
[vimeo/psalm#10746
- Skip symlink test on Windows by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10749
- Avoid duplicating code for RiskyTruthyFalsyComparison by
[@&#8203;theodorejb](https://togithub.com/theodorejb) in
[vimeo/psalm#10765
- fix PHP 8 tests running with wrong --php-version=/phpVersion= if not
explicitly specified by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10776
- CS fix by [@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10801

#### New Contributors

- [@&#8203;MelechMizrachi](https://togithub.com/MelechMizrachi) made
their first contribution in
[vimeo/psalm#10738

**Full Changelog**:
vimeo/psalm@5.22.2...5.23.0

### [`v5.22.2`](https://togithub.com/vimeo/psalm/releases/tag/5.22.2)

[Compare
Source](https://togithub.com/vimeo/psalm/compare/5.22.1...5.22.2)

<!-- Release notes generated using configuration in .github/release.yml
at 5.22.x -->

#### What's Changed

##### Fixes

- Catch missing classlike exceptions during scanning by
[@&#8203;weirdan](https://togithub.com/weirdan) and
[@&#8203;ohader](https://togithub.com/ohader) in
[vimeo/psalm#10720

**Full Changelog**:
vimeo/psalm@5.22.1...5.22.2

### [`v5.22.1`](https://togithub.com/vimeo/psalm/releases/tag/5.22.1)

[Compare
Source](https://togithub.com/vimeo/psalm/compare/5.22.0...5.22.1)

<!-- Release notes generated using configuration in .github/release.yml
at 5.22.x -->

#### What's Changed

##### Fixes

- Improve parsing of `@psalm-type` by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10713

**Full Changelog**:
vimeo/psalm@5.22.0...5.22.1

### [`v5.22.0`](https://togithub.com/vimeo/psalm/releases/tag/5.22.0)

[Compare
Source](https://togithub.com/vimeo/psalm/compare/5.21.1...5.22.0)

<!-- Release notes generated using configuration in .github/release.yml
at 5.x -->

#### What's Changed

##### Features

- Allow inline comments in typedef shapes by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10623
- allow typedef imports from any kind of classlike by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10625
- Allow enum cases to be global constants by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10634
- New InvalidOverride issue for Override attribute by
[@&#8203;edsrzf](https://togithub.com/edsrzf) in
[vimeo/psalm#10644
- Analyze dynamic names for static property and const fetches by
[@&#8203;edsrzf](https://togithub.com/edsrzf) in
[vimeo/psalm#10629
- New MissingOverrideAttribute issue by
[@&#8203;edsrzf](https://togithub.com/edsrzf) in
[vimeo/psalm#10651
- Flag `stdClass::__construct()` calls that have arguments by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10661
- Improve Reflection stubs by
[@&#8203;vudaltsov](https://togithub.com/vudaltsov) in
[vimeo/psalm#10091
- Forbid constructors from returning any values by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10686
- Report first class callables generated for unknown static methods by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10691
- Process `@psalm-this-out` on `__construct()` as well by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10690
- Report invalid number of arguments for psalm-taint-\* by
[@&#8203;staabm](https://togithub.com/staabm) in
[vimeo/psalm#10699

##### Fixes

- Fix ownerDocument type in dom-ext classes by
[@&#8203;fluffycondor](https://togithub.com/fluffycondor) in
[vimeo/psalm#10619
- Fix numeric scalar validate filter var input return type wrong by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10621
- Stable baseline by [@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10633
- Allow sebastian/diff v6 by
[@&#8203;simPod](https://togithub.com/simPod) in
[vimeo/psalm#10639
- CallMap: Adjust return type for `inotify_add_watch()` to `int|false`
by [@&#8203;UlrichEckhardt](https://togithub.com/UlrichEckhardt) in
[vimeo/psalm#10637
- Fix check-type when using builtin types from within a namespace by
[@&#8203;robchett](https://togithub.com/robchett) in
[vimeo/psalm#10648
- Do not add `callable` as a native property type by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10654
- Fix additional places where base_dir was broken due to missing
separator by [@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10630
- Late binding of enum cases by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10655
- Suppress `UndefinedClass` in `whatever_exists()` by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10659
- Fix parsing magic method annotations by
[@&#8203;issidorov](https://togithub.com/issidorov) in
[vimeo/psalm#10665
- Strip callmap prefixes from parameter names by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10666
- Narrow `ord()` return type to `int<0,255>` by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10676
- Template union object incorrect assertions by
[@&#8203;robchett](https://togithub.com/robchett) in
[vimeo/psalm#10677
- Don't show backtrace in `InvalidDocblock` issue message by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10679
- Class consts in array shapes by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10678
- Prevent mixed|null by
[@&#8203;robchett](https://togithub.com/robchett) in
[vimeo/psalm#10675

##### Internal changes

- Drop unused local composer repo by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10647
- Clarify that Pull request labels failure is to be resolved by
maintainers by [@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10649
- Fix unstable `hasFullyQualified(Interface|Enum)()` by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10603
- Revert partial mistakenly pushed fix by
[@&#8203;danog](https://togithub.com/danog) in
[vimeo/psalm#10671

**Full Changelog**:
vimeo/psalm@5.21.1...5.22.0

### [`v5.21.1`](https://togithub.com/vimeo/psalm/releases/tag/5.21.1)

[Compare
Source](https://togithub.com/vimeo/psalm/compare/5.21.0...5.21.1)

<!-- Release notes generated using configuration in .github/release.yml
at 5.21.x -->

#### What's Changed

##### Fixes

- Fix baseline loading for path specified on the command line by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10628

**Full Changelog**:
vimeo/psalm@5.21.0...5.21.1

### [`v5.21.0`](https://togithub.com/vimeo/psalm/releases/tag/5.21.0)

[Compare
Source](https://togithub.com/vimeo/psalm/compare/5.20.0...5.21.0)

<!-- Release notes generated using configuration in .github/release.yml
at 5.x -->

#### What's Changed

##### Features

- Allow importing typedefs from enums by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10617

##### Fixes

- Fix [#&#8203;10552](https://togithub.com/vimeo/psalm/issues/10552) by
[@&#8203;danog](https://togithub.com/danog) in
[vimeo/psalm#10572
- Unit test improvements for php-parser 5 by
[@&#8203;edsrzf](https://togithub.com/edsrzf) in
[vimeo/psalm#10574
- Fix template replacement edge case by
[@&#8203;klimick](https://togithub.com/klimick) in
[vimeo/psalm#10586
- Switch condition order by
[@&#8203;edsrzf](https://togithub.com/edsrzf) in
[vimeo/psalm#10594
- Partial revert "Fix auto completion by partial property or method" by
[@&#8203;issidorov](https://togithub.com/issidorov) in
[vimeo/psalm#10588
- \[LSP] Add issue type in description by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10607
- Do not validate callable arguments in lenient contexts by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10601
- `readgzfile()` is impure by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10600
- Allow properties on intersections with enum interfaces by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10599
- `key_exists()` is an alias for `array_key_exists()` by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10598
- Fix language server running with `opcache.save_comments=0` by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10614
- Report `MissingConstructor` for natively typed mixed properties by
[@&#8203;weirdan](https://togithub.com/weirdan) in
[vimeo/psalm#10615

##### Internal changes

- Bump actions/cache from 3 to 4 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[vimeo/psalm#10584
- Baseline update by [@&#8203;jorgsowa](https://togithub.com/jorgsowa)
in
[vimeo/psalm#10593
- Re-work CheckTrivialExprVisitor by
[@&#8203;edsrzf](https://togithub.com/edsrzf) in
[vimeo/psalm#10612
- Minor php-parser tweaks by
[@&#8203;edsrzf](https://togithub.com/edsrzf) in
[vimeo/psalm#10605

#### New Contributors

- [@&#8203;jorgsowa](https://togithub.com/jorgsowa) made their first
contribution in
[vimeo/psalm#10593

**Full Changelog**:
vimeo/psalm@5.20.0...5.21.0

### [`v5.20.0`](https://togithub.com/vimeo/psalm/releases/tag/5.20.0)

[Compare
Source](https://togithub.com/vimeo/psalm/compare/5.19.1...5.20.0)

<!-- Release notes generated using configuration in .github/release.yml
at 5.x -->

#### What's Changed

##### Features

- report error for non-strict or empty comparison on truthy+falsy union
by [@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10502

##### Fixes

- Fix template, conditional array keys by
[@&#8203;danog](https://togithub.com/danog) in
[vimeo/psalm#10568

**Full Changelog**:
vimeo/psalm@5.19.1...5.20.0

### [`v5.19.1`](https://togithub.com/vimeo/psalm/releases/tag/5.19.1)

[Compare
Source](https://togithub.com/vimeo/psalm/compare/5.19.0...5.19.1)

<!-- Release notes generated using configuration in .github/release.yml
at 5.x -->

#### What's Changed

##### Fixes

- Deprecated Template Classes are not ignored by
[@&#8203;psalm-suppress](https://togithub.com/psalm-suppress)
DeprecatedClass by
[@&#8203;samlitowitz](https://togithub.com/samlitowitz) in
[vimeo/psalm#10518
- Implement \__set method in SimpleXMLElement stub by
[@&#8203;kthaler](https://togithub.com/kthaler) in
[vimeo/psalm#10536
- Make getrandmax type more specific and unserialize to require
class-string by [@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10540
- Fix mb_get_info can return null - CI failing bc of reflection by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10543
- make basename & dirname return types more specific by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10545
- add support for extract to set variables for keyed arrays and respect
EXTR_SKIP by [@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10544
- remove redundat directory separator which caused "//" in path not
found errors by [@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10542
- Fix empty literal string becomes non-empty-string by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10499

#### New Contributors

- [@&#8203;samlitowitz](https://togithub.com/samlitowitz) made their
first contribution in
[vimeo/psalm#10518
- [@&#8203;kthaler](https://togithub.com/kthaler) made their first
contribution in
[vimeo/psalm#10536

**Full Changelog**:
vimeo/psalm@5.19.0...5.20.0

### [`v5.19.0`](https://togithub.com/vimeo/psalm/releases/tag/5.19.0)

[Compare
Source](https://togithub.com/vimeo/psalm/compare/5.18.0...5.19.0)

<!-- Release notes generated using configuration in .github/release.yml
at 5.x -->

#### What's Changed

##### Features

- Reduce memory consumption of caching and parallel processing without
igbinary by [@&#8203;sj-i](https://togithub.com/sj-i) in
[vimeo/psalm#10532
- filter_input & filter_var return type more specific by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10498

##### Fixes

- strtok always returns a non-empty-string when it does not return false
by [@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10497
- Fix [#&#8203;10512](https://togithub.com/vimeo/psalm/issues/10512):
Fixed SessionUpdateTimestampHandlerInterface parameter names by
[@&#8203;zerkms](https://togithub.com/zerkms) in
[vimeo/psalm#10524
- Fix [GH-10465](https://togithub.com/vimeo/psalm/issues/10465) by
[@&#8203;florisluiten](https://togithub.com/florisluiten) in
[vimeo/psalm#10483
- Fix callable without args not handled correctly by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10500
- Add error when using readonly property in by-ref arg by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10505
- fix: [#&#8203;10496](https://togithub.com/vimeo/psalm/issues/10496)
[#&#8203;10503](https://togithub.com/vimeo/psalm/issues/10503) by
[@&#8203;ging-dev](https://togithub.com/ging-dev) in
[vimeo/psalm#10508

#### New Contributors

- [@&#8203;florisluiten](https://togithub.com/florisluiten) made their
first contribution in
[vimeo/psalm#10483

**Full Changelog**:
vimeo/psalm@5.18.0...5.19.0

### [`v5.18.0`](https://togithub.com/vimeo/psalm/releases/tag/5.18.0)

[Compare
Source](https://togithub.com/vimeo/psalm/compare/5.17.0...5.18.0)

<!-- Release notes generated using configuration in .github/release.yml
at 5.x -->

##### What's Changed

##### Features

- Add support for Override attribute by
[@&#8203;delolmo](https://togithub.com/delolmo) in
[vimeo/psalm#10493

##### Fixes

- Fix [#&#8203;10460](https://togithub.com/vimeo/psalm/issues/10460) by
[@&#8203;danog](https://togithub.com/danog) in
[vimeo/psalm#10464
- Emit AfterCodebasePopulatedEvent even on partial scans by
[@&#8203;danog](https://togithub.com/danog) in
[vimeo/psalm#10457
- Small assertion fix by [@&#8203;danog](https://togithub.com/danog) in
[vimeo/psalm#10455
- Fix shaped array class string key combination by
[@&#8203;danog](https://togithub.com/danog) in
[vimeo/psalm#10450
- Fix remaining POSIX-only absolute path detection by
[@&#8203;theodorejb](https://togithub.com/theodorejb) in
[vimeo/psalm#10452
- dont combine empty string with numeric-string by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10459
- Fix type not equal when parent by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10477
- Use same parameter names in stubs by
[@&#8203;danog](https://togithub.com/danog) in
[vimeo/psalm#10480
- fix false positive ArgumentTypeCoercion for callback param by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10454
- report error for invalid array key type by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10481
- fix literal int/string comparisons only using one literal by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10484
- add InvalidArgument error when passing false to true param by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10488
- Fix Uncaught RuntimeException: PHP Error: Uninitialized string offset
0 when $pattern is empty by
[@&#8203;iMu3ic](https://togithub.com/iMu3ic) in
[vimeo/psalm#10489

##### Internal changes

- fix composer scripts running with inconsistent php versions by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10463
- update fidry/cpu-core-counter dependency by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10456
- fix psalm v4 hardcoded in tests by
[@&#8203;kkmuffme](https://togithub.com/kkmuffme) in
[vimeo/psalm#10475

##### New Contributors

- [@&#8203;iMu3ic](https://togithub.com/iMu3ic) made their first
contribution in
[vimeo/psalm#10489
- [@&#8203;delolmo](https://togithub.com/delolmo) made their first
contribution in
[vimeo/psalm#10493

**Full Changelog**:
vimeo/psalm@5.17.0...5.18.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/open-feature/php-sdk).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy45My4xIiwidXBkYXRlZEluVmVyIjoiMzcuMzMxLjAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix The PR will be included in 'Fixes' section of the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Method __callStatic() breaks asserts on 5.23
3 participants